import Vue from 'vue';
import VueRouter from 'vue-router';
import App from './App.vue';
import { Button,Spin } from 'ant-design-vue';
import { router } from './route';

// 告诉vue使用vue-router
Vue.use(VueRouter);
Vue.config.productionTip = false;
Vue.component(Button.name, Button);
// window.addEventListener('error', (event) => {
// 	console.log(event, 'cuowu');
// });

document.onmousedown = (e) => {
	if (e.button == 2) {
		return false;
	}
};
new Vue({
	router,
	render: (h) => h(App)
}).$mount('#app');
